package edu.njust.cma.service;

import edu.njust.cma.pojo.Standard;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface StandardService {

    //1.添加新的标准（添入标准库）
    int addStandard(Standard standard);

    void addStandardMethod(int standardId, String methodName);

    List<Standard> getAllStandard();

    List<String> getAllMajorCategoryName();

    List<String> getAllMinorCategoryName(String majorCategoryName);

    List<String> getNumber(String majorCategoryName, String minorCategoryName);

    Integer getStandardId(String number);

    List<String> getStandardMethod(int standardId);

    boolean deleteStandard(int standardId);
}
